/**
 * 
 */

package com.wutianyi.nio.interfaces;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ByteChannel;

/**
 * @author wutianyi
 * 
 */
public interface InputQueue {

	int fillFrom(ByteChannel channel) throws IOException;

	boolean isEmpty();
	
	int indexOf(byte b);
	
	ByteBuffer dequeueBytes(int count);
	
	void discardBytes(int count);
}
